import type { OptionItemTreeModel } from '#/components/type';

import { requestClient } from '#/api/request';

/**
 * 保存
 */
export async function saveNoticeWithContentApi(param: any) {
  return requestClient.post<any>('notice/save-with-content', param);
}

/**
 * 分页查询
 */
export async function loadContentClobByIdApi(contentClobId: string) {
  return requestClient.get<any>(`content/clob/query-by-id/${contentClobId}`);
}

export async function loadAllDictionaryItemApi() {
  return requestClient.get<OptionItemTreeModel[]>('/data/dict/all-tree');
}
